<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

// 角色死亡日志
class logRoleDeath extends Model
{
    use HasFactory;

    private $prefix = 'log';

    protected $table = "log_role_death";

    public function setGameArea($serverId)
    {
        if(!$serverId) $serverId = '0';
        return parent::setConnection( $this->prefix.'_'. $serverId);
    }

}

